//
//  HBHMainBannerCell.m
//  HubeiHotel
//
//  Created by 张露杰 on 17/11/14.
//  Copyright © 2017年 张露杰. All rights reserved.
//

#import "HBHMainBannerCell.h"

@implementation HBHMainBannerCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    //    继承父类
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = 0;
    }
    return self;
}

-(void)loadCellWithImages:(NSArray *)images
{
    //    重新布局
    for (UIView *view in self.contentView.subviews) {
        [view removeFromSuperview];
    }
    SDCycleScrollView *cycleScrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 0, SCREENW, 150*screenW_6 + 64) delegate:self placeholderImage:nil];
    cycleScrollView.imageURLStringsGroup = images;
    [self.contentView addSubview:cycleScrollView];
}

@end
